#include "SettingView.h"
#include "SettingController.h"
void SettingView::showSetting(const SettingConf& settingConf)
{
    std::cout << "SessionType:" << settingConf.SessionType << std::endl;
    std::cout << "CanChi:" << settingConf.CanChi << std::endl;
    std::cout << "CanPeng:" << settingConf.CanPeng<< std::endl;
    std::cout << "CanGang:" << settingConf.CanGang<< std::endl;
    std::cout << "CanHu:" << settingConf.CanHu << std::endl;
}

const SettingConf SettingView::getSetting()
{
    SettingConf settingConf;
    std::cout << "input SessionType :";
    std::cin >> settingConf.SessionType;
    std::cout << "input CanChi :";
    std::cin >> settingConf.CanChi;
    std::cout << "input CanPeng :";
    std::cin >> settingConf.CanPeng;
    std::cout << "input CanGang :";
    std::cin >> settingConf.CanGang;
    std::cout << "input CanHu :";
    std::cin >> settingConf.CanHu;
    return settingConf;
}

bool SettingView::saveSetting()
{
    SettingController::getInstance()->saveSetting();
    return false;
}
